<?php


namespace app\model\school;


use think\Model;
use think\model\concern\SoftDelete;

class SchoolCourseModel extends Model
{
    protected $name = 'school_course';
    protected $autoWriteTimestamp = true;

    use SoftDelete;
    protected $defaultSoftDelete = 0;

    public function school()
    {
        return $this->hasOne(SchoolModel::class, 'id', 'school_id')->bind(['school_name' => 'name']);
    }
}